package view;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.StringSelection;
import java.awt.datatransfer.Transferable;
import java.awt.event.ActionEvent;

import javax.swing.BorderFactory;
import javax.swing.DefaultListModel;
import javax.swing.DropMode;
import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.ListSelectionModel;
import javax.swing.SwingUtilities;
import javax.swing.TransferHandler;


/**
 * 
 */

/**
 * @author Leo COLLET, Nelle VAROQUAUX
 *
 */
public class ListeHabits extends JPanel{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private static final JLabel title = new JLabel("Liste d'habits");
	
	public ListeHabits(){
		super();
		this.build();

	}

	private void build() {
		this.setBackground(Color.LIGHT_GRAY);
		this.setBounds(70, 70, 300, 650);
		this.add(title);
		
		for (int i=0; i<5; i++){
		JPanel lesHabits = new JPanel();
		lesHabits.setMaximumSize(this.getSize());

		/* Ajout des habits */
		Habit habit_01 = new Habit(70, 170, "Habit1", "../icons/robe.png");
		lesHabits.add(habit_01);
		Habit habit_02 = new Habit(200, 70, "Habit2", "../icons/robe.png");
		lesHabits.add(habit_02);
		Habit habit_03 = new Habit(350, 170, "Habit3", "../icons/robe.png");
		lesHabits.add(habit_03);


		
		lesHabits.setVisible(true);
		
		this.add(lesHabits);
		}
		
		this.setVisible(true);
	}
       
}
